﻿<!DOCTYPE html>

<html>
<head>
    <title>CMS installer - @ViewBag.Title</title>
	@Cms.ScriptInclude("~/CmsContent/Themes/Admin/Scripts/jquery-1.7.min.js")
	@Cms.ScriptInclude("~/CmsContent/Themes/Admin/Scripts/jquery-ui-1.8.16.custom.min.js")
	@Cms.ScriptInclude("~/CmsContent/Themes/Admin/Scripts/jquery.validate.min.js")
	@Cms.ScriptInclude("~/CmsContent/Themes/Admin/Scripts/jquery.validate.unobtrusive.min.js")
	@Cms.ScriptInclude("~/CmsContent/Themes/Admin/Scripts/cms.admin.js")

	@Cms.CssLink("~/CmsContent/Themes/Admin/Styles/admin.css")
	@Cms.CssLink("~/CmsContent/Themes/Admin/Styles/jquery-ui/jquery-ui-1.8.16.custom.css")

	@Cms.AjaxAntiForgeryToken()
	
	@RenderSection("head", required: false)
</head>
<body>
	<div id="ajaxindicator" style="display:none"><img src="@Cms.Content("~/CmsContent/Themes/Admin/Images/wait.gif")" alt="Wait" /></div>
	<div id="messagewrapper" style="display: none">
		@Cms.DisplayMessages()
	</div>
	<div id="header">
		<div id="logininfo">
			@Html.Partial("_LogOnPartial")
		</div>
		@Html.Partial("_MainAdminMenu")
		@if (Cms.CmsContext != null && Cms.CmsContext.Site != null) {
			<a href="@Cms.CmsContext.Host.Settings.HostUrl" id="viewsite">View site</a>
		}
	</div>
	<div id="help">
		<a id="helptoggle" class="closed" href="#">Help</a>
		<div id="helpcontent" style="display: none">
			@if (IsSectionDefined("help"))
			{
				@RenderSection("help")
			}
			else
			{
				<span>No help available.</span>
			}
		</div>
	</div>
	<div id="container">
		<div id="sidebar">
			@RenderSection("sidebar", required: false)
		</div>
		<div id="main">
			@RenderBody()
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function () {
			enableDeleteLink();
			enableListviewCommands();
			displayMessages("#messagewrapper");
			enableAjaxIndicator("#ajaxindicator");
			handleAjaxMessages();
			enableCsrfAjaxProtection();

			$('#helptoggle').toggle(function() {
				$(this).removeClass("closed").addClass("open").next('#helpcontent').show();
				$(this).text('Hide');
			}, function() {
				$(this).removeClass("open").addClass("closed").next('#helpcontent').hide();
				$(this).text('Help');
			});
		});
	</script>
</body>
</html>
